#include "cpu/exec/template-start.h"
 
#define instr add
 
static void do_execute(){
    DATA_TYPE res= op_src->val + op_dest->val;
    OPERAND_W(op_dest, res);
    update_eflags_pf_zf_sf((DATA_TYPE_S)res); 
    cpu.eflags.CF=op_dest->val > res;
    cpu.eflags.OF=MSB(~(op_src->val ^ op_dest->val)&(op_dest->val ^ res));
    print_asm_template2();
}
make_instr_helper(i2a);
make_instr_helper(i2rm);
 
#if DATA_BYTE == 2 || DATA_BYTE == 4
make_instr_helper(si2rm)
#endif
 
make_instr_helper(r2rm)
make_instr_helper(rm2r)
 
#include "cpu/exec/template-end.h"